package cn.broadsense.thrid.result;

import lombok.Data;

import java.io.Serializable;

/**
 * xc 接口返回结构
 *
 * @author pengxin
 * @date 2022-10-19 10:57
 */
@Data
public class BaseXcResult implements Serializable {
    private static final long serialVersionUID = 8022493072450984620L;

    /**
     * 返回状态
     */
    private Integer code;

    private String msg;

    /**
     * 是否成功
     *
     * @return
     */
    public boolean isSuccess() {
        return code != null && 200 == code.intValue();
    }
}
